package com.lyf.boot.base.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.lyf.boot.core.model.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author Luyufan
 * @date 2023/7/7 9:04
 */
@TableName("t_sys_dept")
@Data
@EqualsAndHashCode(callSuper = true)
public class SysDept extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = -8986270710311576905L;
    /**
     * 部门id
     */
    @TableId(value = "dept_id", type = IdType.ASSIGN_ID)
    private Long deptId;

    /**
     * 部门名称
     */
    private String deptName;

    /**
     * 父级部门id
     */
    private Long parentId;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 备注
     */
    @TableField(value = "remark", updateStrategy = FieldStrategy.ALWAYS)
    private String remark;

}
